package com.patrol.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 房梦豪
 * @version 1.0
 * @description: TODO
 * @date 2021/8/12 16:35
 */
@Data
@ApiModel(description = "路径")
@TableName("task_travel_path")
public class TravelPath implements Serializable {

    @ApiModelProperty(value = "主键(无实际意义)")
    @TableId(type = IdType.AUTO, value = "travel")
    private Integer travel;

    @ApiModelProperty(value = "任务ID")
    @TableField(value = "task_id")
    private Integer taskId;

    @ApiModelProperty(value = "时间戳")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "经度")
    @TableField(value = "latitude_x")
    private Double latitudeX;

    @ApiModelProperty(value = "纬度")
    @TableField(value = "longitude_y")
    private Double longitudeY;

    @ApiModelProperty(value = "用户ID(外键)")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted")
    private Integer isDeleted;
}
